<div class="st-cp-pg-home">
    <div id="agendamento">
        <div class="fechada">
            <a href="javascript:void(0);">agende sua avaliacao &nbsp;&nbsp;&nbsp;<img src="<?php echo $this->urlbase.'/public/media/images/icone_seta.png'?>" alt="<?php echo $this->titulo; ?>" /></a>
        </div>
        
        <div id="blc_aberta">
            <div class="aberta">
                <form id="form" method="post">
                    <label>nome</label><input type="text" id="nome" name="nome" />
                    <label>telefone</label><input class="telefone" type="text" id="" name="telefone" />
                    <label>e-mail</label><input type="text" id="email" name="email" />
                    <label>cidade</label><input type="text" id="cidade" name="cidade" />
                    <label>queixa</label>
                        <select id="queixa"   name="queixa">
                            <?php foreach($this->queixa as $queixa) { ?>
                            <option value="<?php echo  $queixa['QEX_NOM'];?>"><?php echo  $queixa['QEX_NOM'];?></option>
                            <?php } ?>
                        </select>    
                    <label class="enviar">agende sua avalia&ccedil;&atilde;o</label><input width="50px"type="submit" id="enviar" name="enviar" value="enviar" />
                </form>
            </div>
        </div>
    </div>
    <?php
    $link  = '';
    $alink = '';
    $imgs  = '';
    
    $posicao = '52';
    foreach($this->fullbanner as $key => $obj) {
        $img = glob('public/upload/fullbanner/'.$obj['BAN_ID'].'.*');
        @$img = $img[0];
        $style = '';
        $class = '';
        $link_img = strlen($obj['BAN_LNK']) > 0 ? TRUE:FALSE;
        
        if($key > 0) $style = 'display: none;';
        if($key == 0) $class = 'class="action"';
        
        $alink .= '<a '.$class.' id="lnkb'.$key.'" itemref="bimg'.$key.'" itemid="'.$key.'" href="javascript:void(0)"></a>';
        $imgs .= '<img id="bimg'.$key.'" src="'.$this->urlbase.'/'.str_replace('.','_sld.',$img).'" style="margin-left: '.$posicao.'px" alt="'.$obj['BAN_DSC'].'" >';
        $posicao += 34; 
    ?> 
        <?php if($link_img) { ?><a href="<?php echo $obj['BAN_LNK'];?>"><?php } ?>
            <div id="banner<?php echo $key; ?>" class="banner" style="background-image: url('<?php echo $this->urlbase.'/'.$img; ?>');<?php echo $style; ?>"></div>
        <?php if($link_img) { ?></a><?php } ?>
    <?php } ?>
    <div class="lnkitg">
        <div class="imgs"><?php echo $imgs; ?></div>
        <?php echo $alink; ?>
    </div>
</div>